//
//  homeTableViewCell.h
//  DaoZiJinFu
//
//  Created by woker on 16/6/23.
//  Copyright © 2016年 iwoker. All rights reserved.
//

#import <UIKit/UIKit.h>
#import "HomeCellModel.h"
@class homeTableViewCell;
@protocol financeCellDelegate <NSObject>
@optional
- (void)buyFinance:(HomeCellModel *)model;

@end

static NSString * const homeTableViewCells = @"homeTableViewCell";
@interface homeTableViewCell : UITableViewCell
@property (strong, nonatomic) IBOutlet UIButton *buyBtn;
@property (strong, nonatomic) IBOutlet UILabel *financeLab;
@property (strong, nonatomic) IBOutlet UILabel *yieldLab;
@property (strong, nonatomic) IBOutlet UILabel *investDay;
@property (copy, nonatomic) NSString *ID;
@property (assign, nonatomic) float buy_max_amount;
@property (assign, nonatomic) float buy_min_amount;
@property (assign, nonatomic) float remaining_investment_amount;
@property (strong, nonatomic) IBOutlet UILabel *deadLineLab;

@property (strong, nonatomic) HomeCellModel *model;


@property (nonatomic, assign) id<financeCellDelegate> delegate;

- (void)cellReloadData:(HomeCellModel *)model;
- (IBAction)buyBtnClick:(id)sender;

@end
